#!/usr/bin/python
import listener
from conf import Config
from logger import Logger
from ignoreList import IgnoreList
from dbusSessionBus import DBusSessionBus
import dbusService

DBusSessionBus()
Config()
Logger()
IgnoreList().load()

#test.dbcalc().daemon = True
#listener.Listener().daemon = True
#listener.Listener().start()
#test.dbcalc().start()
listener.Listener().start()
dbusService.run()
DBusSessionBus().sendCommandToGUI('running')
#dbusService.Main().start()
#if DBusSessionBus().sendCommandToGUI('running'):
#    DBusSessionBus().sendCommandToGUI('changeImage', args=['/home/arns/Downloads/384053-georgia-jones-0x0-AhaWallpaper.com.jpg', '192.168.1.15'])
#    print(True)
#else:
#    print(False)
#test.dbcalc().run()
#listener.Listener()